from PyQt5.QtWidgets import QMessageBox

def popup_info_box(title:str, text:str) -> None:
    msg_box = QMessageBox()
    msg_box.setWindowTitle(title)
    msg_box.setText(text)
    msg_box.setStandardButtons(QMessageBox.StandardButton.Ok)
    msg_box.setIcon(QMessageBox.Icon.Information)
    msg_box.exec_()

def popup_error_box(title:str, text:str) -> None:
    msg_box = QMessageBox()
    msg_box.setWindowTitle(title)
    msg_box.setText(text)
    msg_box.setStandardButtons(QMessageBox.StandardButton.Ok)
    msg_box.setIcon(QMessageBox.Icon.Critical)
    msg_box.exec_()
